package list.homework3;

public class Test {
    public static void main(String[] args) {
        Cat c = new Cat();
        c.setName("小猫");
        c.setAge(1);
        c.eat();
        c.animal();

        Dog d = new Dog("小狗",2);
        d.eat();
        d.animal();
    }
}
